package com.elvt.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elvt.server.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者：elvt
 * @since 2022-05-21
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 获取分页查询数据
     * @param page 分页数据
     * @param employee 条件
     * @param beginDataSource 日期
     * @return
     */
    IPage<Employee> getEmployeeByPage( Page<Employee> page, @Param("employee") Employee employee, @Param("beginDataSource") LocalDate[] beginDataSource);

    List<Employee> getAllEmployeeORGgetById(Integer id);

    IPage<Employee> getEmployeeSalary(Page<Employee> page);
}
